<script setup>
import { useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'

const router = useRouter()
const pay = () =>{
  //
  ElMessage({
    message: '支付成功',
    type: 'success'
  })
  router.push('/appointsuccess')
}
</script>

<template>
   <header>
              <i class="fa fa-angle-left" onclick="history.go(-1)"></i>
              <p>确认您的订单</p>
              <div></div>
          </header>
          <div class="top-ban"></div>

          <section>
              <div class="title">
                  <p>体检人信息</p>
              </div>
              <table>
                  <tr>
                      <td>姓名:</td>
                      <td>黄药师</td>
                  </tr>
                  <tr>
                      <td>证件号码:</td>
                      <td>210106587452156897</td>
                  </tr>
                  <tr>
                      <td>出生日期:</td>
                      <td>1999-10-23</td>
                  </tr>
                  <tr>
                      <td>手机号码:</td>
                      <td>15698745214</td>
                  </tr>
              </table>
              <div class="title">
                  <p>体检日期</p>
              </div>
              <table>
                  <tr>
                      <td>2021年11月28日</td>
                  </tr>
              </table>
              <div class="title">
                  <p>体检机构</p>
              </div>
              <table>
                  <tr>
                      <td colspan="2">沈阳熙康云医院-和平院区</td>
                  </tr>
                  <tr>
                      <td>营业时间:</td>
                      <td>周一至周五 7:30-15:30 （周六截止12:00）</td>
                  </tr>
                  <tr>
                      <td>采血截止:</td>
                      <td>采血截止时间10:30</td>
                  </tr>
                  <tr>
                      <td>机构电话:</td>
                      <td>98745214</td>
                  </tr>
                  <tr>
                      <td>机构地址:</td>
                      <td>文体路7号世贸商都（五里河茶城）四楼西区</td>
                  </tr>
              </table>
              <div class="title">
                  <p>套餐类型</p>
              </div>
              <table>
                  <tr>
                      <td>普通男士客户-基础套餐</td>
                  </tr>
              </table>
          </section>

          <div class="bottom-btn">
              <div class="first">实付款: <span>￥350</span></div>
              <div class="last" @click="pay">确认支付</div>
          </div>

          <div class="bottom-ban"></div>
</template>

<style scoped>
/*********************** header ***********************/
header{
    width: 100%;
    height: 15.7vw;
    background-color: #FFF;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
    padding: 0 3.6vw;
}
header .fa{
    font-size: 8vw;
}



/*********************** common样式 ***********************/
.top-ban{
    width: 100%;
    height: 15.7vw;
}
.bottom-ban{
    width: 100%;
    height: 26.2vw;
}

/*********************** section ***********************/
section{
    width: 86vw;
    margin: 0 auto;
}
section .title{
    width: 100%;
    height: 12vw;
    border-bottom: solid 1px #EEE;

    display: flex;
    align-items: center;
}
section .title p{
    height: 3.4vw;
    line-height: 3.4vw;
    font-size: 4.2vw;
    font-weight: 600;
    box-sizing: border-box;
    padding-left: 3vw;
    border-left: solid 2px #127A90;
}
section table{
    font-size: 3.6vw;
    color: #555;
    margin-top: 2vw;
}
section table tr{
    line-height: 8vw;
}
section table tr td:first-child{
    width: 22%;
}

/*********************** bottom-btn ***********************/
.bottom-btn{
    width: 100%;
    height: 12vw;
    background-color: #FFF;

    position: fixed;
    left: 0;
    bottom: 14.2vw;

    display: flex;
}
.bottom-btn .first{
    flex: 2;
    line-height: 12vw;
    font-size: 4.6vw;
    box-sizing: border-box;
    padding-left: 6vw;
}
.bottom-btn .first span{
    color: #F77B2D;
}
.bottom-btn .last{
    flex: 1;
    background-color: #117C94;
    line-height: 12vw;
    text-align: center;
    font-size: 5vw;
    color: #FFF;

    user-select: none;
    cursor: pointer;
}
</style>